package com.cmccgz.udacs_landlord_webapp.main.user.userinfo;


import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.UserInfo;

public interface UserInfoContract  {
    /*获取用户信息*/
    public interface UserInfoPresenter extends BasePresenter{
        void getUserInfo();
    }
    public interface UserInfoView {
        void getUserInfoCache(UserInfo userInfo);
        void getUserInfoSuccess(UserInfo userInfo);
        void getUserInfoFail(String msg);
    }
    /*用户信息编辑*/
    public interface ChangeInfoPresenter extends BasePresenter{
        void changeUserInfo(UserInfo userInfo);
    }
    public interface ChangeInfoView extends BaseView<ChangeInfoPresenter>{
        void changeInfoSuccess();
        void changeInfoError(String msg);
    }
    /*修改密码*/
    public interface ChangePwdPresenter extends BasePresenter{
        void changePwd(String oldPwd,String newPwd,String rePwd);
    }
    public interface ChangePwdView extends BaseView<ChangePwdPresenter>{
        void changePwdSuccess();
        void changePwdError(String msg);
    }
}
